package com.kyl.controller;


import com.kyl.base.ResponseResult;
import com.kyl.service.RoomTypeService;
import com.kyl.vo.RoomTypeVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author WanJl
 * @version 1.0
 * @title RoomTypeController
 * @description
 * @create 2025/1/18
 */
@RestController
@RequestMapping("/roomTypes")
@Api(tags = "房型管理相关接口")
public class RoomTypeController {

    @Resource
    private RoomTypeService roomTypeService;

    @GetMapping
    @ApiOperation(value = "获取房型列表", notes = "获取房型列表")
    public ResponseResult<List<RoomTypeVo>> getRoomTypesList(){
        return ResponseResult.success(roomTypeService.getRoomTypesList());
    }

}
